package at.tugraz.akm.forume.bean;

import java.util.ArrayList;
import java.util.Date;

/**
 * 
 * @author
 */

public class Thread {
	private Integer id;
	private Date date;
	private String title;
	private String content;
	private boolean public1;
	private String url;
	private boolean modified;
	private ArrayList<String> tagList;
	private String user;
	private int statusId;
	private ArrayList<Reply> replyList;
	private int num_replies;

	/**
	 * @return the num_replies
	 */
	public int getNum_replies() {
		return num_replies;
	}

	/**
	 * @param num_replies the num_replies to set
	 */
	public void setNum_replies(int num_replies) {
		this.num_replies = num_replies;
	}

	/**
	 * @param public1 the public1 to set
	 */
	public void setPublic1(boolean public1) {
		this.public1 = public1;
	}

	/**
	 * @param modified the modified to set
	 */
	public void setModified(boolean modified) {
		this.modified = modified;
	}

	public Thread() {
	}

	public Thread(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Boolean getPublic1() {
		return public1;
	}

	public void setPublic1(Boolean public1) {
		this.public1 = public1;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Boolean getModified() {
		return modified;
	}

	public void setModified(Boolean modified) {
		this.modified = modified;
	}

	public ArrayList<String> getTagList() {
		return tagList;
	}

	public void setTagList(ArrayList<String> tagList) {
		this.tagList = tagList;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public int getStatusId() {
		return statusId;
	}

	public void setStatusId(int statusId) {
		this.statusId = statusId;
	}

	public ArrayList<Reply> getReplyList() {
		return replyList;
	}

	public void setReplyList(ArrayList<Reply> replyList) {
		this.replyList = replyList;
	}

	@Override
	public int hashCode() {
		int hash = 0;
		hash += (id != null ? id.hashCode() : 0);
		return hash;
	}

	@Override
	public boolean equals(Object object) {
		if (!(object instanceof Thread)) {
			return false;
		}
		Thread other = (Thread) object;
		if ((this.id == null && other.id != null)
				|| (this.id != null && !this.id.equals(other.id))) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {

		return id + "" + date.toGMTString() + "" + title + "" + content + "" + url + ""
				+ user;
	}
}
